Component({
    options: {
        styleIsolation: 'apply-shared'
    },
    properties: {
        imgHost: {
            type: String
        },
        data: {
            type: Object
        }
    },
    methods: {
        priview(e) {
            const sources = this.data.data.photos.map(item => {
                return this.data.imgHost + item
            })
            wx.previewImage({
                current: sources[e.currentTarget.dataset.index],
                urls: sources
            })
        }
    }
})